package com.inspur.edp.cef.designtime.api.collection;

import java.util.ArrayList;

/**
 * The Collection Of Determination Element
 *
 * @ClassName: DtmElementCollection
 * @Author: Benjamin Gong
 * @Date: 2021/1/11 17:13
 * @Version: V1.0
 */
public class DtmElementCollection extends BaseList<String> implements Cloneable {
	private static final long serialVersionUID = 1L;

	/**
	 * 是否包含指定字段ID集合中的任意字段
	 * 
	 * @param elementLabelIDs 指定的字段LabelID集合
	 */
	public final boolean ContainsAny(ArrayList<String> elementLabelIDs) {
		if (this.size() == 0) {
			return true;
		}
		if (elementLabelIDs == null || elementLabelIDs.size() == 0) {
			return false;
		}
		for (String var : elementLabelIDs) {
			if (!this.contains(var)) {
				return false;
			}
		}
		return true;
	}
}